package com.fanjf.swipebacktemplate;

import android.support.multidex.MultiDexApplication;

/**
 * Created by fanjf on 2016/11/22.
 */

public abstract class BaseApplication extends MultiDexApplication {

    protected static BaseApplication application;

    @Override
    public void onCreate () {
        super.onCreate ();
        application = this;
    }

    /**
     * 子application需要实现这个方法，用来设置背景颜色
     *
     * @return
     */
    public abstract int getBackgroundColor ();

    public static BaseApplication getInstance () {
        return application;
    }
}
